package cn.rkylin.oms.warehouseDocking.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.rkylin.oms.warehouseDocking.dao.IQmWmsSkuDAO;
import cn.rkylin.oms.warehouseDocking.domain.QmWmsSku;

/**
 * QmWmsSku服务层
 * 
 * @author jipengcheng
 * @created 2017年10月18日
 */
@Service("qmWmsSkuService")
public class QmWmsSkuService {

    @Autowired
    IQmWmsSkuDAO iQmWmsSkuDAO;

    /**
     * 插入
     * 
     * @param qmWmsSku
     * @return
     * @throws Exception
     */
    public int insertSelectiveQmWmsSku(QmWmsSku qmWmsSku) throws Exception {
        int iRtn = iQmWmsSkuDAO.insertSelectiveQmWmsSku(qmWmsSku);
        return iRtn;
    }

    /**
     * 更新
     * 
     * @param qmWmsSku
     * @return
     * @throws Exception
     */
    public int updateByPrimaryKeySelectiveQmWmsSku(QmWmsSku qmWmsSku) throws Exception {
        int iRtn = iQmWmsSkuDAO.updateByPrimaryKeySelectiveQmWmsSku(qmWmsSku);
        return iRtn;
    }
}
